package com.itheima.stock.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
//关联配置文件中的集合，prefix = 集合名字
@ConfigurationProperties(prefix = "stock")
//添加进IOC容器，也可以在启动类中配置
@Component
public class StockInfoConfig {
    //a股大盘ID集合
    private List<String> inner;
    //外盘ID集合
    private List<String> outer;
    //股票区间
    private List<String> upDownRange;
    //拉取股票数据接口
    private String marketUrl;
    private String blockUrl;

}
